package cn.sofwin.day0108.homework;

public class Leap {
    public static void main(String[] args) {
        int count = 0;
        System.out.println("2000~3000年之间的闰年为：");
        for (int i = 2000; i <= 3000; i++) {
            if (i % 4 == 0 && (i % 100 != 0 || i % 400 == 0)) {
                System.out.println(i);
            }
        }

    }
}
